﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Xml;
using System.Diagnostics;
using System.Drawing;

namespace iPhoneUI.Shell
{
    public class HostConfig : Config
    {
        public HostConfig(XmlNode config)
            : base(config)
        {
        }

        public int TimeOut
        {
            get
            {
                return GetValue("@TimeOut", 0);
            }
        }

        public IEnumerable<WidgetConfig> Widgets
        {
            get
            {
                return GetList<WidgetConfig>(n => new WidgetConfig(n), "widget");
            }
        }
    }
}
